import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'
import Index from '../views/acgindex/index.vue'
import Channel from '../views/channel/channel.vue'
import State from '../views/state/state.vue'
import My from '../views/my/my.vue'
import detail from '../views/acgindex/animationdetail.vue'
import Login from '../views/login/login.vue'
import Register from '../views/login/register.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Index',
    component: Index
  },
  {
    path: '/channel',
    name: 'Channel',
    component: Channel
  },
  {
    path: '/state',
    name: 'State',
    component: State
  },
  {
    path: '/my',
    name: 'My',
    component: My
  },
  {
    path: '/animationdetail',
    name: 'detail',
    component: detail
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  }
]

const router = new VueRouter({
  routes
})

export default router
